//package com.quantgroup.data.saastest.config;
//
//
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.boot.jdbc.DataSourceBuilder;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.sql.DataSource;
//
//@Configuration
//public class DataSourceConfig {
//
//    @Bean
//    @ConfigurationProperties(prefix = "spring.datasource.default")
//    public DataSource defaultDataSource() {
//        return DataSourceBuilder.create().build();
////        DruidDataSource dataSource = new DruidDataSource();
////        dataSource.setUrl("jdbc:mysql://172.24.17.119:15307/test_database?useUnicode=true&characterEncoding=UTF8&autoReconnect=true&failOverReadOnly=false&useSSL=false");
////        dataSource.setUsername("root");
////        dataSource.setPassword("quantGroup#com");
////        dataSource.setValidationQuery("select 1");
////        dataSource.setTestOnBorrow(true);
////        return dataSource;
//    }
//
////    @Bean
////    public DynamicDataSource dynamicDataSource(){
////        System.out.println(111111);
////        return new DynamicDataSource();
////    }
//
//}
